package com.example.demo.pojo;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

public class MemberExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public MemberExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("Id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("Id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("Id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("Id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("Id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("Id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("Id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("Id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("Id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("Id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("Id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("Id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andYonghuNameIsNull() {
            addCriterion("yonghu_name is null");
            return (Criteria) this;
        }

        public Criteria andYonghuNameIsNotNull() {
            addCriterion("yonghu_name is not null");
            return (Criteria) this;
        }

        public Criteria andYonghuNameEqualTo(String value) {
            addCriterion("yonghu_name =", value, "yonghuName");
            return (Criteria) this;
        }

        public Criteria andYonghuNameNotEqualTo(String value) {
            addCriterion("yonghu_name <>", value, "yonghuName");
            return (Criteria) this;
        }

        public Criteria andYonghuNameGreaterThan(String value) {
            addCriterion("yonghu_name >", value, "yonghuName");
            return (Criteria) this;
        }

        public Criteria andYonghuNameGreaterThanOrEqualTo(String value) {
            addCriterion("yonghu_name >=", value, "yonghuName");
            return (Criteria) this;
        }

        public Criteria andYonghuNameLessThan(String value) {
            addCriterion("yonghu_name <", value, "yonghuName");
            return (Criteria) this;
        }

        public Criteria andYonghuNameLessThanOrEqualTo(String value) {
            addCriterion("yonghu_name <=", value, "yonghuName");
            return (Criteria) this;
        }

        public Criteria andYonghuNameLike(String value) {
            addCriterion("yonghu_name like", value, "yonghuName");
            return (Criteria) this;
        }

        public Criteria andYonghuNameNotLike(String value) {
            addCriterion("yonghu_name not like", value, "yonghuName");
            return (Criteria) this;
        }

        public Criteria andYonghuNameIn(List<String> values) {
            addCriterion("yonghu_name in", values, "yonghuName");
            return (Criteria) this;
        }

        public Criteria andYonghuNameNotIn(List<String> values) {
            addCriterion("yonghu_name not in", values, "yonghuName");
            return (Criteria) this;
        }

        public Criteria andYonghuNameBetween(String value1, String value2) {
            addCriterion("yonghu_name between", value1, value2, "yonghuName");
            return (Criteria) this;
        }

        public Criteria andYonghuNameNotBetween(String value1, String value2) {
            addCriterion("yonghu_name not between", value1, value2, "yonghuName");
            return (Criteria) this;
        }

        public Criteria andYonghuPasswordIsNull() {
            addCriterion("yonghu_password is null");
            return (Criteria) this;
        }

        public Criteria andYonghuPasswordIsNotNull() {
            addCriterion("yonghu_password is not null");
            return (Criteria) this;
        }

        public Criteria andYonghuPasswordEqualTo(String value) {
            addCriterion("yonghu_password =", value, "yonghuPassword");
            return (Criteria) this;
        }

        public Criteria andYonghuPasswordNotEqualTo(String value) {
            addCriterion("yonghu_password <>", value, "yonghuPassword");
            return (Criteria) this;
        }

        public Criteria andYonghuPasswordGreaterThan(String value) {
            addCriterion("yonghu_password >", value, "yonghuPassword");
            return (Criteria) this;
        }

        public Criteria andYonghuPasswordGreaterThanOrEqualTo(String value) {
            addCriterion("yonghu_password >=", value, "yonghuPassword");
            return (Criteria) this;
        }

        public Criteria andYonghuPasswordLessThan(String value) {
            addCriterion("yonghu_password <", value, "yonghuPassword");
            return (Criteria) this;
        }

        public Criteria andYonghuPasswordLessThanOrEqualTo(String value) {
            addCriterion("yonghu_password <=", value, "yonghuPassword");
            return (Criteria) this;
        }

        public Criteria andYonghuPasswordLike(String value) {
            addCriterion("yonghu_password like", value, "yonghuPassword");
            return (Criteria) this;
        }

        public Criteria andYonghuPasswordNotLike(String value) {
            addCriterion("yonghu_password not like", value, "yonghuPassword");
            return (Criteria) this;
        }

        public Criteria andYonghuPasswordIn(List<String> values) {
            addCriterion("yonghu_password in", values, "yonghuPassword");
            return (Criteria) this;
        }

        public Criteria andYonghuPasswordNotIn(List<String> values) {
            addCriterion("yonghu_password not in", values, "yonghuPassword");
            return (Criteria) this;
        }

        public Criteria andYonghuPasswordBetween(String value1, String value2) {
            addCriterion("yonghu_password between", value1, value2, "yonghuPassword");
            return (Criteria) this;
        }

        public Criteria andYonghuPasswordNotBetween(String value1, String value2) {
            addCriterion("yonghu_password not between", value1, value2, "yonghuPassword");
            return (Criteria) this;
        }

        public Criteria andYonghuPhotoIsNull() {
            addCriterion("yonghu_photo is null");
            return (Criteria) this;
        }

        public Criteria andYonghuPhotoIsNotNull() {
            addCriterion("yonghu_photo is not null");
            return (Criteria) this;
        }

        public Criteria andYonghuPhotoEqualTo(String value) {
            addCriterion("yonghu_photo =", value, "yonghuPhoto");
            return (Criteria) this;
        }

        public Criteria andYonghuPhotoNotEqualTo(String value) {
            addCriterion("yonghu_photo <>", value, "yonghuPhoto");
            return (Criteria) this;
        }

        public Criteria andYonghuPhotoGreaterThan(String value) {
            addCriterion("yonghu_photo >", value, "yonghuPhoto");
            return (Criteria) this;
        }

        public Criteria andYonghuPhotoGreaterThanOrEqualTo(String value) {
            addCriterion("yonghu_photo >=", value, "yonghuPhoto");
            return (Criteria) this;
        }

        public Criteria andYonghuPhotoLessThan(String value) {
            addCriterion("yonghu_photo <", value, "yonghuPhoto");
            return (Criteria) this;
        }

        public Criteria andYonghuPhotoLessThanOrEqualTo(String value) {
            addCriterion("yonghu_photo <=", value, "yonghuPhoto");
            return (Criteria) this;
        }

        public Criteria andYonghuPhotoLike(String value) {
            addCriterion("yonghu_photo like", value, "yonghuPhoto");
            return (Criteria) this;
        }

        public Criteria andYonghuPhotoNotLike(String value) {
            addCriterion("yonghu_photo not like", value, "yonghuPhoto");
            return (Criteria) this;
        }

        public Criteria andYonghuPhotoIn(List<String> values) {
            addCriterion("yonghu_photo in", values, "yonghuPhoto");
            return (Criteria) this;
        }

        public Criteria andYonghuPhotoNotIn(List<String> values) {
            addCriterion("yonghu_photo not in", values, "yonghuPhoto");
            return (Criteria) this;
        }

        public Criteria andYonghuPhotoBetween(String value1, String value2) {
            addCriterion("yonghu_photo between", value1, value2, "yonghuPhoto");
            return (Criteria) this;
        }

        public Criteria andYonghuPhotoNotBetween(String value1, String value2) {
            addCriterion("yonghu_photo not between", value1, value2, "yonghuPhoto");
            return (Criteria) this;
        }

        public Criteria andYonghuPhoneIsNull() {
            addCriterion("yonghu_phone is null");
            return (Criteria) this;
        }

        public Criteria andYonghuPhoneIsNotNull() {
            addCriterion("yonghu_phone is not null");
            return (Criteria) this;
        }

        public Criteria andYonghuPhoneEqualTo(String value) {
            addCriterion("yonghu_phone =", value, "yonghuPhone");
            return (Criteria) this;
        }

        public Criteria andYonghuPhoneNotEqualTo(String value) {
            addCriterion("yonghu_phone <>", value, "yonghuPhone");
            return (Criteria) this;
        }

        public Criteria andYonghuPhoneGreaterThan(String value) {
            addCriterion("yonghu_phone >", value, "yonghuPhone");
            return (Criteria) this;
        }

        public Criteria andYonghuPhoneGreaterThanOrEqualTo(String value) {
            addCriterion("yonghu_phone >=", value, "yonghuPhone");
            return (Criteria) this;
        }

        public Criteria andYonghuPhoneLessThan(String value) {
            addCriterion("yonghu_phone <", value, "yonghuPhone");
            return (Criteria) this;
        }

        public Criteria andYonghuPhoneLessThanOrEqualTo(String value) {
            addCriterion("yonghu_phone <=", value, "yonghuPhone");
            return (Criteria) this;
        }

        public Criteria andYonghuPhoneLike(String value) {
            addCriterion("yonghu_phone like", value, "yonghuPhone");
            return (Criteria) this;
        }

        public Criteria andYonghuPhoneNotLike(String value) {
            addCriterion("yonghu_phone not like", value, "yonghuPhone");
            return (Criteria) this;
        }

        public Criteria andYonghuPhoneIn(List<String> values) {
            addCriterion("yonghu_phone in", values, "yonghuPhone");
            return (Criteria) this;
        }

        public Criteria andYonghuPhoneNotIn(List<String> values) {
            addCriterion("yonghu_phone not in", values, "yonghuPhone");
            return (Criteria) this;
        }

        public Criteria andYonghuPhoneBetween(String value1, String value2) {
            addCriterion("yonghu_phone between", value1, value2, "yonghuPhone");
            return (Criteria) this;
        }

        public Criteria andYonghuPhoneNotBetween(String value1, String value2) {
            addCriterion("yonghu_phone not between", value1, value2, "yonghuPhone");
            return (Criteria) this;
        }

        public Criteria andNewMoneyIsNull() {
            addCriterion("new_money is null");
            return (Criteria) this;
        }

        public Criteria andNewMoneyIsNotNull() {
            addCriterion("new_money is not null");
            return (Criteria) this;
        }

        public Criteria andNewMoneyEqualTo(BigDecimal value) {
            addCriterion("new_money =", value, "newMoney");
            return (Criteria) this;
        }

        public Criteria andNewMoneyNotEqualTo(BigDecimal value) {
            addCriterion("new_money <>", value, "newMoney");
            return (Criteria) this;
        }

        public Criteria andNewMoneyGreaterThan(BigDecimal value) {
            addCriterion("new_money >", value, "newMoney");
            return (Criteria) this;
        }

        public Criteria andNewMoneyGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("new_money >=", value, "newMoney");
            return (Criteria) this;
        }

        public Criteria andNewMoneyLessThan(BigDecimal value) {
            addCriterion("new_money <", value, "newMoney");
            return (Criteria) this;
        }

        public Criteria andNewMoneyLessThanOrEqualTo(BigDecimal value) {
            addCriterion("new_money <=", value, "newMoney");
            return (Criteria) this;
        }

        public Criteria andNewMoneyIn(List<BigDecimal> values) {
            addCriterion("new_money in", values, "newMoney");
            return (Criteria) this;
        }

        public Criteria andNewMoneyNotIn(List<BigDecimal> values) {
            addCriterion("new_money not in", values, "newMoney");
            return (Criteria) this;
        }

        public Criteria andNewMoneyBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("new_money between", value1, value2, "newMoney");
            return (Criteria) this;
        }

        public Criteria andNewMoneyNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("new_money not between", value1, value2, "newMoney");
            return (Criteria) this;
        }

        public Criteria andYonghuSexIsNull() {
            addCriterion("yonghu_sex is null");
            return (Criteria) this;
        }

        public Criteria andYonghuSexIsNotNull() {
            addCriterion("yonghu_sex is not null");
            return (Criteria) this;
        }

        public Criteria andYonghuSexEqualTo(String value) {
            addCriterion("yonghu_sex =", value, "yonghuSex");
            return (Criteria) this;
        }

        public Criteria andYonghuSexNotEqualTo(String value) {
            addCriterion("yonghu_sex <>", value, "yonghuSex");
            return (Criteria) this;
        }

        public Criteria andYonghuSexGreaterThan(String value) {
            addCriterion("yonghu_sex >", value, "yonghuSex");
            return (Criteria) this;
        }

        public Criteria andYonghuSexGreaterThanOrEqualTo(String value) {
            addCriterion("yonghu_sex >=", value, "yonghuSex");
            return (Criteria) this;
        }

        public Criteria andYonghuSexLessThan(String value) {
            addCriterion("yonghu_sex <", value, "yonghuSex");
            return (Criteria) this;
        }

        public Criteria andYonghuSexLessThanOrEqualTo(String value) {
            addCriterion("yonghu_sex <=", value, "yonghuSex");
            return (Criteria) this;
        }

        public Criteria andYonghuSexLike(String value) {
            addCriterion("yonghu_sex like", value, "yonghuSex");
            return (Criteria) this;
        }

        public Criteria andYonghuSexNotLike(String value) {
            addCriterion("yonghu_sex not like", value, "yonghuSex");
            return (Criteria) this;
        }

        public Criteria andYonghuSexIn(List<String> values) {
            addCriterion("yonghu_sex in", values, "yonghuSex");
            return (Criteria) this;
        }

        public Criteria andYonghuSexNotIn(List<String> values) {
            addCriterion("yonghu_sex not in", values, "yonghuSex");
            return (Criteria) this;
        }

        public Criteria andYonghuSexBetween(String value1, String value2) {
            addCriterion("yonghu_sex between", value1, value2, "yonghuSex");
            return (Criteria) this;
        }

        public Criteria andYonghuSexNotBetween(String value1, String value2) {
            addCriterion("yonghu_sex not between", value1, value2, "yonghuSex");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}